import request from '../../utils/request';
// pages/index/index.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    banners: [
      {
        pic: "https://img-blog.csdnimg.cn/6366aa4a5b71471e992f9010e0d5b8ff.jpeg",
        url: "1"
      },
      {
        pic: "https://img-blog.csdnimg.cn/5546c08474734393a38b0c8d7afd1cf3.png",
        url: "2"
      },
      {
        pic: "https://img-blog.csdnimg.cn/direct/765e79e907444673be8aa52311a2ba85.png",
        url: "3"
      },
      {
        pic: "https://img-blog.csdnimg.cn/fd4ebb443759453baab90f7cab74e5fb.jpeg",
        url: "4"
      },
      {
        pic: "https://img-blog.csdnimg.cn/direct/dec7c78cfd064719bc19221e8ddbd78a.jpeg",
        url: "5"
      },
    ],
    buttons: [
      {
        icon: "iconfont icon-zuixinredian",
        text: "最新热点"
      },
      {
        icon: "iconfont icon-youxigonglve",
        text: "游戏攻略"
      },
      {
        icon: "iconfont icon-shangchengremai",
        text: "商城热卖"
      },
      {
        icon: "iconfont icon-47zixundaquan",
        text: "资讯大全"
      },
      {
        icon: "iconfont icon-shipin",
        text: "视频中心"
      }
    ],
    videos: [
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/b47dae912fd649adb225055e00793743.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/48732832c30a4c658d50306af9d6d81b.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/9f1ad0904b8247d0afd7bd39d99b228d.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/777a4a9182134292b6678f008fd9dd39.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/9e80f724bbc04c629aec6536613a0070.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/b47dae912fd649adb225055e00793743.png",
        text: "啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"
      },
      {
        videoImage: "https://img-blog.csdnimg.cn/direct/b47dae912fd649adb225055e00793743.png",
        text: "啦啦啦啦啦"
      }
    ],
    news: [
      {
        image: "https://img-blog.csdnimg.cn/direct/3ae6bac67c3149c498003dbad1795c1e.jpeg",
        title: "标题",
        Desc: "内容描述封杀封杀实打实大苏打存在相差实打实打算"
      },
      {
        image: "https://img-blog.csdnimg.cn/direct/3ae6bac67c3149c498003dbad1795c1e.jpeg",
        title: "标题",
        Desc: "内容描述封杀封杀实打实大苏打存在相差实打实打算"
      },
      {
        image: "https://img-blog.csdnimg.cn/direct/3ae6bac67c3149c498003dbad1795c1e.jpeg",
        title: "标题",
        Desc: "内容描述封杀封杀实打实大苏打存在相差实打实打算"
      }
    ]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: async function (options) {
    // let result = await request("/banner",{type:2});
    // this.setData({
    //   banners : result.banners
    // });
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    wx.showToast({
      icon: "none",
      title: '下拉触底',
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})